package com.qingyun.house.api.config;

import org.springframework.boot.context.properties.ConfigurationProperties;


@ConfigurationProperties(prefix = "spring.httpclient")
public class HttpClientProperties {

    private Integer connectionTimeOut = 1000;
    private Integer socketTimeOut = 10000;

    private String agent = "agent";
    private Integer masxConnPerRoute = 10;
    private Integer maxConnToTotal = 50;

    public Integer getConnectionTimeOut() {
        return connectionTimeOut;
    }

    public void setConnectionTimeOut(Integer connectionTimeOut) {
        this.connectionTimeOut = connectionTimeOut;
    }

    public Integer getSocketTimeOut() {
        return socketTimeOut;
    }

    public void setSocketTimeOut(Integer socketTimeOut) {
        this.socketTimeOut = socketTimeOut;
    }

    public String getAgent() {
        return agent;
    }

    public void setAgent(String agent) {
        this.agent = agent;
    }

    public Integer getMasxConnPerRoute() {
        return masxConnPerRoute;
    }

    public void setMasxConnPerRoute(Integer masxConnPerRoute) {
        this.masxConnPerRoute = masxConnPerRoute;
    }

    public Integer getMaxConnToTotal() {
        return maxConnToTotal;
    }

    public void setMaxConnToTotal(Integer maxConnToTotal) {
        this.maxConnToTotal = maxConnToTotal;
    }
}
